package org.spring.blog.pojo;

import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.solr.client.solrj.beans.Field;
import org.spring.blog.service.ISolrService;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
public class SolrSearchResult implements Serializable {
    private static final long serialVersionUID = 55625127994713589L;


    @Field(ISolrService.solr_key_blog_id)
    private String id;

    @Field(ISolrService.solr_key_blog_content)
    private String blogContent;

    @Field(ISolrService.solr_key_blog_create_time)
    private Date blogCreateTime;

    @Field(ISolrService.solr_key_blog_labels)
    private String blogLabels;

    @Field(ISolrService.solr_key_blog_url)
    private String blogUrl;

    @Field(ISolrService.solr_key_blog_title)
    private String blogTitle;

    @Field(ISolrService.solr_key_blog_view_count)
    private int blogViewCount;

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
        throw new java.io.NotSerializableException("org.spring.blog.pojo.SolrSearchResult");
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
        throw new java.io.NotSerializableException("org.spring.blog.pojo.SolrSearchResult");
    }
}
